package com.fen.demo010;

import com.fen.common.CarDao;
import com.fen.common.CarService;
import org.springframework.context.annotation.*;

/**
 * @author : lrf
 * @description :
 * @tip :
 * @date : 2019/3/22
 */
@ComponentScans(@ComponentScan(basePackages = "com.fen.demo010"))
@ImportResource(locations = {"classpath:demo008/xml-bean-factory-config.xml"})
@Configuration
public class HelloWorldConfiguration {

    @Bean
    public CarService carService(){
        return new CarService();
    }

    @Bean
    public CarDao aa(){
        return new CarDao();
    }
}
